home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
util
/
misc
/
vhlogger_v2.lzh
/
testrexx.vh
< prev
next >
Wrap
Text File
|
1992-07-05
|
1KB
|
45 lines
/* testrexx.vh */
/* version 1 07/05/92 */
/* author Vince Herried (ka8cte) */
/* purpose test and serve as a demo on using vhlogger and a rexx exec */
options results
address "vhlogger"
'version'
if index(result,"VHlogger 2.01") = 0 then do
say "VHlogger version other than expected"
say result
end
exit(0)
do until (ans = "END")
say "Available commands: version,find,open,close,quit,"
say "testadd, or END to end this exec?"
say "Your command?"
pull ans arg /* note, all parms are retreived in upper case */
if ans = "END" then exit(0)
else
if ans = "TESTADD" then do
say "update dummy;Vince;920701;0700;0800;449;559;1688 Staffordshire RD;Columbus;oh;43229;comment;yy;y;2;2;"
"update dummy;Vince;920701;0700;0800;449;559;1688 Staffordshire RD;Columbus;oh;43229;comment;yy;y;2;2;"
if rc ~= 0 then do
say "testadd command failed with a return code of" rc
say "Possible causes: data base not open, data base full,"
say "vhlogger is not running (should have failed sooner tho)"
say "vhlogger is broken"
end
else
'' ans arg
say "RC=" rc
say "Result="result
result=""
if ans = "CLOSE" then do
"QUIT"
exit(0)
end
if ans = "QUIT" then exit(0);
end